package design_pattern.publish_subscribe;

public class Message<M> {

    private String publisher;

    private M msg;

    public Message(String publisher, M msg) {
        this.publisher = publisher;
        this.msg = msg;
    }

    public String getPublisher() {
        return publisher;
    }

    public void setPublisher(String publisher) {
        this.publisher = publisher;
    }

    public M getMsg() {
        return msg;
    }

    public void setMsg(M msg) {
        this.msg = msg;
    }

}
